package cn.upfinder.datalibrary.Api;

import android.support.annotation.IntRange;
import android.widget.FrameLayout;

import okhttp3.ResponseBody;
import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

/**
 * Created by upfinder on 2016/11/26 0026.
 * 获取优酷视频的服务接口
 */

public interface YouKuApi {

    //获取电影
    @GET("/category/show/c_96_u_1_s_1_d_1_p_{page}.html?spm=a2h0j.8251845.0.0")
    Observable<ResponseBody> getMovie(@Path("page") @IntRange(from = 1, to = 30) int page);


    //获取剧集
    @GET("/category/show/c_97_s_1_d_1_p_{page}.html?spm=a2h0j.8251845.0.0")
    Observable<ResponseBody> getTV(@Path("page") @IntRange(from = 1, to = 30) int page);


    //获取综艺
    @GET("/category/show/c_85_s_1_d_1_p_{page}.html?spm=a2h0j.8251845.0.0")
    Observable<ResponseBody> getPlay(@Path("page") @IntRange(from = 1, to = 30) int page);




}

